<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <button onclick="fl(this)">删除</button>
    <ul>
        <li>熊大</li>
        <li>熊二</li>
        <li>光友强</li>
    </ul>
</body>
</html>
<script>
    var ul=document.querySelector('ul');
    function fl(aaa){
        ul.removeChild(ul.children[0]);
        if(ul.children.length==0){
            aaa.disabled=true;
        }
    }
</script>